package com.company.management.modal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@TableName("T_Report_Comment")
@Accessors(chain = true)
public class TReportComment {

    @TableId(value = "CommentId", type = IdType.AUTO)  // 映射数据库的 CommentId
    private Long commentId;  // 评论ID

    @TableField("UserId")
    private Long userId;  // 评论人ID

    @TableField("ReportId")
    private Long reportId;  // 汇报ID

    @TableField("Context")
    private String context;  // 评论内容

    @TableField("CreateDateTime")
    private LocalDateTime createDateTime;  // 评论时间

}
